package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ContaxxYuhuiMapper;
import com.ruoyi.system.domain.ContaxxYuhui;
import com.ruoyi.system.service.IContaxxYuhuiService;
import com.ruoyi.common.core.text.Convert;

/**
 * 誉辉陶瓷Service业务层处理
 *
 * @author Yanghc
 * @date 2024-09-02
 */
@Service
public class ContaxxYuhuiServiceImpl implements IContaxxYuhuiService
{
    @Autowired
    private ContaxxYuhuiMapper contaxxYuhuiMapper;

    /**
     * 查询誉辉陶瓷
     *
     * @param id 誉辉陶瓷主键
     * @return 誉辉陶瓷
     */
    @Override
    public ContaxxYuhui selectContaxxYuhuiById(Long id)
    {
        return contaxxYuhuiMapper.selectContaxxYuhuiById(id);
    }

    /**
     * 查询誉辉陶瓷列表
     *
     * @param contaxxYuhui 誉辉陶瓷
     * @return 誉辉陶瓷
     */
    @Override
    public List<ContaxxYuhui> selectContaxxYuhuiList(ContaxxYuhui contaxxYuhui)
    {
        return contaxxYuhuiMapper.selectContaxxYuhuiList(contaxxYuhui);
    }

    /**
     * 新增誉辉陶瓷
     *
     * @param contaxxYuhui 誉辉陶瓷
     * @return 结果
     */
    @Override
    public int insertContaxxYuhui(ContaxxYuhui contaxxYuhui)
    {
        return contaxxYuhuiMapper.insertContaxxYuhui(contaxxYuhui);
    }

    /**
     * 修改誉辉陶瓷
     *
     * @param contaxxYuhui 誉辉陶瓷
     * @return 结果
     */
    @Override
    public int updateContaxxYuhui(ContaxxYuhui contaxxYuhui)
    {
        return contaxxYuhuiMapper.updateContaxxYuhui(contaxxYuhui);
    }

    /**
     * 批量删除誉辉陶瓷
     *
     * @param ids 需要删除的誉辉陶瓷主键
     * @return 结果
     */
    @Override
    public int deleteContaxxYuhuiByIds(String ids)
    {
        return contaxxYuhuiMapper.deleteContaxxYuhuiByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除誉辉陶瓷信息
     *
     * @param id 誉辉陶瓷主键
     * @return 结果
     */
    @Override
    public int deleteContaxxYuhuiById(Long id)
    {
        return contaxxYuhuiMapper.deleteContaxxYuhuiById(id);
    }
}
